home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / STRLWR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  325 b   |  16 lines

  1. /* strlwr.c  From TC Bible page 287  Use strlwr to convert any upper case
  2.  letters in a string to lowercase. */
  3.  
  4.  
  5. #include <stdio.h>
  6. #include <string.h>
  7. main()
  8. {
  9.     char buf[80];
  10.     printf("Enter a string with uppercase letters: ");
  11.     gets(buf);
  12.     strlwr(buf);
  13.     printf("The string in lowercase is:\n%s\n", buf);
  14.  
  15. }
  16.